<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f = "http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui" >
   <h:head>
        <title>RefPortal</title>
        <link rel="stylesheet" href="css/stylesheet.css" type="text/css" />
    </h:head>  
    <h:body>  
         <h:form rendered="#{user.login}">
                    <p:menubar autoDisplay="false" >   
                            <p:submenu label="Account" icon="ui-icon-document">  
                                <p:menuitem value="Edit Details" url="edit.jsf" />   
                                <p:separator />  
                                <p:menuitem value="Log Out" action="#{user.logout()}" />  
                            </p:submenu>  
                                <p:submenu label="Authors" icon="ui-icon-pencil"> 
                                    <p:menuitem value="Add" url="page21.jsf" /> 
                                    <p:menuitem value="Veiw" url="page22.jsf" /> 
                                    <p:menuitem value="Edit" url="page23.jsf" /> 
                                </p:submenu>  
                            <p:menuitem value="Referneces" url="http://www.primefaces.org" icon="ui-icon-contact" /> 
                            <p:menuitem value="Sets" url="http://www.primefaces.org" icon="ui-icon-document" /> 
                            <p:menuitem value="Formats" url="http://www.primefaces.org" icon="ui-icon-newwin" /> 
                            <p:menuitem value="Export" url="http://www.primefaces.org" icon="ui-icon-disk" />  
                        </p:menubar>    
</h:form>
                </h:body>
                </html>

